<template lang="html">
  <div>
    home
    {{$store.state.home.money}}
    <button @click="increment(100)">增加</button>
    <button @click="decrement">减少</button>
  </div>
</template>

// home
<script>
import { mapActions } from "vuex";
export default {
  methods: {
    ...mapActions("home", ["increment", "decrement"])
  }
};
</script>

<style scoped>
</style>